package s07;

/**
 * @ClassName Demo07
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 18:24
 * @ModifyDate 2022/8/14 18:24
 * @Version 1.0
 */
public class Demo07 {
    public static void printName(String name,PersonBuilder pb){
        System.out.println(pb.buildPerson(name).getName());
    }

    public static void main(String[] args) {
        printName("张三",name->new Person(name));
    }
}
